package com.heima.api;

import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.user.pojos.ApUser;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author DiXiaoNie
 * @since 2023/1/5 9:55
 */
@FeignClient("leadnews-user")
public interface UserFeignClient {

    @GetMapping("/api/v1/user/{id}")
    public ResponseResult<ApUser> findApUserById(@PathVariable Integer id);
}
